import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/admin/bank/list',
    method: 'get',
    params: query
  })
}



export function getById(id) {
  return request({
    url: '/admin/bank/getById?id='+id,
    method: 'get'
  })
}


export function updateStatus(id, status) {
  const data = {
    id,
    status
  };
  return request({
    url: '/admin/bank/updateStatus',
    method: 'post',
    data: data
  })
}

export function save(data) {

  return request({
    url: '/admin/bank/save',
    method: 'post',
    data: data
  })
}
